using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.InteropServices;

using ILRuntime.CLR.TypeSystem;
using ILRuntime.CLR.Method;
using ILRuntime.Runtime.Enviorment;
using ILRuntime.Runtime.Intepreter;
using ILRuntime.Runtime.Stack;
using ILRuntime.Reflection;
using ILRuntime.CLR.Utils;
using System.Linq;

namespace ILRuntime.Runtime.Generated
{
    unsafe class huqiang_UIComposite_TabControl_Binding
    {
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase method;
            FieldInfo field;
            Type[] args;
            Type type = typeof(huqiang.UIComposite.TabControl);
            args = new Type[]{};
            method = type.GetMethod("get_headDock", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_headDock_0);
            args = new Type[]{typeof(huqiang.UIComposite.TabControl.HeadDock)};
            method = type.GetMethod("set_headDock", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_headDock_1);
            args = new Type[]{typeof(huqiang.Data.FakeStruct), typeof(huqiang.Core.HGUI.UIElement), typeof(huqiang.Core.HGUI.UIInitializer)};
            method = type.GetMethod("Initial", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Initial_2);
            args = new Type[]{typeof(huqiang.Core.HGUI.UIElement), typeof(System.String)};
            method = type.GetMethod("AddContent", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, AddContent_3);
            args = new Type[]{typeof(huqiang.UIComposite.TabControl.TableContent)};
            method = type.GetMethod("AddContent", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, AddContent_4);
            args = new Type[]{typeof(huqiang.UIComposite.TabControl.TableContent)};
            method = type.GetMethod("RemoveContent", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, RemoveContent_5);
            args = new Type[]{typeof(huqiang.UIComposite.TabControl.TableContent)};
            method = type.GetMethod("ReleseContent", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ReleseContent_6);
            args = new Type[]{typeof(huqiang.UIComposite.TabControl.TableContent)};
            method = type.GetMethod("AddTable", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, AddTable_7);
            args = new Type[]{typeof(huqiang.UIComposite.TabControl.TableContent)};
            method = type.GetMethod("ShowContent", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ShowContent_8);
            args = new Type[]{typeof(huqiang.UIComposite.TabControl.TableContent)};
            method = type.GetMethod("ExistContent", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ExistContent_9);
            args = new Type[]{typeof(huqiang.UIEvent.UserEvent), typeof(huqiang.UIEvent.UserAction)};
            method = type.GetMethod("ItemClick", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ItemClick_10);
            args = new Type[]{typeof(huqiang.UIEvent.UserEvent), typeof(huqiang.UIEvent.UserAction)};
            method = type.GetMethod("ItemPointEntry", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ItemPointEntry_11);
            args = new Type[]{typeof(huqiang.UIEvent.UserEvent), typeof(huqiang.UIEvent.UserAction)};
            method = type.GetMethod("ItemPointLeave", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, ItemPointLeave_12);

            field = type.GetField("Head", flag);
            app.RegisterCLRFieldGetter(field, get_Head_0);
            app.RegisterCLRFieldSetter(field, set_Head_0);
            app.RegisterCLRFieldBinding(field, CopyToStack_Head_0, AssignFromStack_Head_0);
            field = type.GetField("Items", flag);
            app.RegisterCLRFieldGetter(field, get_Items_1);
            app.RegisterCLRFieldSetter(field, set_Items_1);
            app.RegisterCLRFieldBinding(field, CopyToStack_Items_1, AssignFromStack_Items_1);
            field = type.GetField("Content", flag);
            app.RegisterCLRFieldGetter(field, get_Content_2);
            app.RegisterCLRFieldSetter(field, set_Content_2);
            app.RegisterCLRFieldBinding(field, CopyToStack_Content_2, AssignFromStack_Content_2);
            field = type.GetField("Item", flag);
            app.RegisterCLRFieldGetter(field, get_Item_3);
            app.RegisterCLRFieldSetter(field, set_Item_3);
            app.RegisterCLRFieldBinding(field, CopyToStack_Item_3, AssignFromStack_Item_3);
            field = type.GetField("CurContent", flag);
            app.RegisterCLRFieldGetter(field, get_CurContent_4);
            app.RegisterCLRFieldSetter(field, set_CurContent_4);
            app.RegisterCLRFieldBinding(field, CopyToStack_CurContent_4, AssignFromStack_CurContent_4);
            field = type.GetField("SelectChanged", flag);
            app.RegisterCLRFieldGetter(field, get_SelectChanged_5);
            app.RegisterCLRFieldSetter(field, set_SelectChanged_5);
            app.RegisterCLRFieldBinding(field, CopyToStack_SelectChanged_5, AssignFromStack_SelectChanged_5);
            field = type.GetField("headHigh", flag);
            app.RegisterCLRFieldGetter(field, get_headHigh_6);
            app.RegisterCLRFieldSetter(field, set_headHigh_6);
            app.RegisterCLRFieldBinding(field, CopyToStack_headHigh_6, AssignFromStack_headHigh_6);
            field = type.GetField("contents", flag);
            app.RegisterCLRFieldGetter(field, get_contents_7);
            app.RegisterCLRFieldSetter(field, set_contents_7);
            app.RegisterCLRFieldBinding(field, CopyToStack_contents_7, AssignFromStack_contents_7);
            field = type.GetField("SelectColor", flag);
            app.RegisterCLRFieldGetter(field, get_SelectColor_8);
            app.RegisterCLRFieldSetter(field, set_SelectColor_8);
            app.RegisterCLRFieldBinding(field, CopyToStack_SelectColor_8, AssignFromStack_SelectColor_8);
            field = type.GetField("HoverColor", flag);
            app.RegisterCLRFieldGetter(field, get_HoverColor_9);
            app.RegisterCLRFieldSetter(field, set_HoverColor_9);
            app.RegisterCLRFieldBinding(field, CopyToStack_HoverColor_9, AssignFromStack_HoverColor_9);


            app.RegisterCLRCreateDefaultInstance(type, () => new huqiang.UIComposite.TabControl());
            app.RegisterCLRCreateArrayInstance(type, s => new huqiang.UIComposite.TabControl[s]);

            args = new Type[]{};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);

        }


        static StackObject* get_headDock_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIComposite.TabControl instance_of_this_method = (huqiang.UIComposite.TabControl)typeof(huqiang.UIComposite.TabControl).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.headDock;

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* set_headDock_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIComposite.TabControl.HeadDock @value = (huqiang.UIComposite.TabControl.HeadDock)typeof(huqiang.UIComposite.TabControl.HeadDock).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)20);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.UIComposite.TabControl instance_of_this_method = (huqiang.UIComposite.TabControl)typeof(huqiang.UIComposite.TabControl).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.headDock = value;

            return __ret;
        }

        static StackObject* Initial_2(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 4);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.Core.HGUI.UIInitializer @initializer = (huqiang.Core.HGUI.UIInitializer)typeof(huqiang.Core.HGUI.UIInitializer).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.Core.HGUI.UIElement @element = (huqiang.Core.HGUI.UIElement)typeof(huqiang.Core.HGUI.UIElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            huqiang.Data.FakeStruct @mod = (huqiang.Data.FakeStruct)typeof(huqiang.Data.FakeStruct).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
            huqiang.UIComposite.TabControl instance_of_this_method = (huqiang.UIComposite.TabControl)typeof(huqiang.UIComposite.TabControl).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Initial(@mod, @element, @initializer);

            return __ret;
        }

        static StackObject* AddContent_3(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 3);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.String @label = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.Core.HGUI.UIElement @model = (huqiang.Core.HGUI.UIElement)typeof(huqiang.Core.HGUI.UIElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            huqiang.UIComposite.TabControl instance_of_this_method = (huqiang.UIComposite.TabControl)typeof(huqiang.UIComposite.TabControl).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.AddContent(@model, @label);

            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* AddContent_4(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIComposite.TabControl.TableContent @table = (huqiang.UIComposite.TabControl.TableContent)typeof(huqiang.UIComposite.TabControl.TableContent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.UIComposite.TabControl instance_of_this_method = (huqiang.UIComposite.TabControl)typeof(huqiang.UIComposite.TabControl).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.AddContent(@table);

            return __ret;
        }

        static StackObject* RemoveContent_5(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIComposite.TabControl.TableContent @table = (huqiang.UIComposite.TabControl.TableContent)typeof(huqiang.UIComposite.TabControl.TableContent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.UIComposite.TabControl instance_of_this_method = (huqiang.UIComposite.TabControl)typeof(huqiang.UIComposite.TabControl).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.RemoveContent(@table);

            return __ret;
        }

        static StackObject* ReleseContent_6(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIComposite.TabControl.TableContent @table = (huqiang.UIComposite.TabControl.TableContent)typeof(huqiang.UIComposite.TabControl.TableContent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.UIComposite.TabControl instance_of_this_method = (huqiang.UIComposite.TabControl)typeof(huqiang.UIComposite.TabControl).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.ReleseContent(@table);

            return __ret;
        }

        static StackObject* AddTable_7(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIComposite.TabControl.TableContent @table = (huqiang.UIComposite.TabControl.TableContent)typeof(huqiang.UIComposite.TabControl.TableContent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.UIComposite.TabControl instance_of_this_method = (huqiang.UIComposite.TabControl)typeof(huqiang.UIComposite.TabControl).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.AddTable(@table);

            return __ret;
        }

        static StackObject* ShowContent_8(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIComposite.TabControl.TableContent @content = (huqiang.UIComposite.TabControl.TableContent)typeof(huqiang.UIComposite.TabControl.TableContent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.UIComposite.TabControl instance_of_this_method = (huqiang.UIComposite.TabControl)typeof(huqiang.UIComposite.TabControl).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.ShowContent(@content);

            return __ret;
        }

        static StackObject* ExistContent_9(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIComposite.TabControl.TableContent @content = (huqiang.UIComposite.TabControl.TableContent)typeof(huqiang.UIComposite.TabControl.TableContent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.UIComposite.TabControl instance_of_this_method = (huqiang.UIComposite.TabControl)typeof(huqiang.UIComposite.TabControl).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.ExistContent(@content);

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method ? 1 : 0;
            return __ret + 1;
        }

        static StackObject* ItemClick_10(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 3);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIEvent.UserAction @action = (huqiang.UIEvent.UserAction)typeof(huqiang.UIEvent.UserAction).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.UIEvent.UserEvent @callBack = (huqiang.UIEvent.UserEvent)typeof(huqiang.UIEvent.UserEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            huqiang.UIComposite.TabControl instance_of_this_method = (huqiang.UIComposite.TabControl)typeof(huqiang.UIComposite.TabControl).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.ItemClick(@callBack, @action);

            return __ret;
        }

        static StackObject* ItemPointEntry_11(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 3);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIEvent.UserAction @action = (huqiang.UIEvent.UserAction)typeof(huqiang.UIEvent.UserAction).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.UIEvent.UserEvent @callBack = (huqiang.UIEvent.UserEvent)typeof(huqiang.UIEvent.UserEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            huqiang.UIComposite.TabControl instance_of_this_method = (huqiang.UIComposite.TabControl)typeof(huqiang.UIComposite.TabControl).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.ItemPointEntry(@callBack, @action);

            return __ret;
        }

        static StackObject* ItemPointLeave_12(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 3);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            huqiang.UIEvent.UserAction @action = (huqiang.UIEvent.UserAction)typeof(huqiang.UIEvent.UserAction).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            huqiang.UIEvent.UserEvent @callBack = (huqiang.UIEvent.UserEvent)typeof(huqiang.UIEvent.UserEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            huqiang.UIComposite.TabControl instance_of_this_method = (huqiang.UIComposite.TabControl)typeof(huqiang.UIComposite.TabControl).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.ItemPointLeave(@callBack, @action);

            return __ret;
        }


        static object get_Head_0(ref object o)
        {
            return ((huqiang.UIComposite.TabControl)o).Head;
        }

        static StackObject* CopyToStack_Head_0(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.TabControl)o).Head;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_Head_0(ref object o, object v)
        {
            ((huqiang.UIComposite.TabControl)o).Head = (huqiang.Core.HGUI.UIElement)v;
        }

        static StackObject* AssignFromStack_Head_0(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            huqiang.Core.HGUI.UIElement @Head = (huqiang.Core.HGUI.UIElement)typeof(huqiang.Core.HGUI.UIElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.UIComposite.TabControl)o).Head = @Head;
            return ptr_of_this_method;
        }

        static object get_Items_1(ref object o)
        {
            return ((huqiang.UIComposite.TabControl)o).Items;
        }

        static StackObject* CopyToStack_Items_1(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.TabControl)o).Items;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_Items_1(ref object o, object v)
        {
            ((huqiang.UIComposite.TabControl)o).Items = (huqiang.Core.HGUI.UIElement)v;
        }

        static StackObject* AssignFromStack_Items_1(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            huqiang.Core.HGUI.UIElement @Items = (huqiang.Core.HGUI.UIElement)typeof(huqiang.Core.HGUI.UIElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.UIComposite.TabControl)o).Items = @Items;
            return ptr_of_this_method;
        }

        static object get_Content_2(ref object o)
        {
            return ((huqiang.UIComposite.TabControl)o).Content;
        }

        static StackObject* CopyToStack_Content_2(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.TabControl)o).Content;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_Content_2(ref object o, object v)
        {
            ((huqiang.UIComposite.TabControl)o).Content = (huqiang.Core.HGUI.UIElement)v;
        }

        static StackObject* AssignFromStack_Content_2(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            huqiang.Core.HGUI.UIElement @Content = (huqiang.Core.HGUI.UIElement)typeof(huqiang.Core.HGUI.UIElement).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.UIComposite.TabControl)o).Content = @Content;
            return ptr_of_this_method;
        }

        static object get_Item_3(ref object o)
        {
            return ((huqiang.UIComposite.TabControl)o).Item;
        }

        static StackObject* CopyToStack_Item_3(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.TabControl)o).Item;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_Item_3(ref object o, object v)
        {
            ((huqiang.UIComposite.TabControl)o).Item = (huqiang.Data.FakeStruct)v;
        }

        static StackObject* AssignFromStack_Item_3(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            huqiang.Data.FakeStruct @Item = (huqiang.Data.FakeStruct)typeof(huqiang.Data.FakeStruct).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.UIComposite.TabControl)o).Item = @Item;
            return ptr_of_this_method;
        }

        static object get_CurContent_4(ref object o)
        {
            return ((huqiang.UIComposite.TabControl)o).CurContent;
        }

        static StackObject* CopyToStack_CurContent_4(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.TabControl)o).CurContent;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_CurContent_4(ref object o, object v)
        {
            ((huqiang.UIComposite.TabControl)o).CurContent = (huqiang.UIComposite.TabControl.TableContent)v;
        }

        static StackObject* AssignFromStack_CurContent_4(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            huqiang.UIComposite.TabControl.TableContent @CurContent = (huqiang.UIComposite.TabControl.TableContent)typeof(huqiang.UIComposite.TabControl.TableContent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.UIComposite.TabControl)o).CurContent = @CurContent;
            return ptr_of_this_method;
        }

        static object get_SelectChanged_5(ref object o)
        {
            return ((huqiang.UIComposite.TabControl)o).SelectChanged;
        }

        static StackObject* CopyToStack_SelectChanged_5(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.TabControl)o).SelectChanged;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_SelectChanged_5(ref object o, object v)
        {
            ((huqiang.UIComposite.TabControl)o).SelectChanged = (System.Action<huqiang.UIComposite.TabControl>)v;
        }

        static StackObject* AssignFromStack_SelectChanged_5(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Action<huqiang.UIComposite.TabControl> @SelectChanged = (System.Action<huqiang.UIComposite.TabControl>)typeof(System.Action<huqiang.UIComposite.TabControl>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)8);
            ((huqiang.UIComposite.TabControl)o).SelectChanged = @SelectChanged;
            return ptr_of_this_method;
        }

        static object get_headHigh_6(ref object o)
        {
            return ((huqiang.UIComposite.TabControl)o).headHigh;
        }

        static StackObject* CopyToStack_headHigh_6(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.TabControl)o).headHigh;
            __ret->ObjectType = ObjectTypes.Float;
            *(float*)&__ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static void set_headHigh_6(ref object o, object v)
        {
            ((huqiang.UIComposite.TabControl)o).headHigh = (System.Single)v;
        }

        static StackObject* AssignFromStack_headHigh_6(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Single @headHigh = *(float*)&ptr_of_this_method->Value;
            ((huqiang.UIComposite.TabControl)o).headHigh = @headHigh;
            return ptr_of_this_method;
        }

        static object get_contents_7(ref object o)
        {
            return ((huqiang.UIComposite.TabControl)o).contents;
        }

        static StackObject* CopyToStack_contents_7(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.TabControl)o).contents;
            object obj_result_of_this_method = result_of_this_method;
            if(obj_result_of_this_method is CrossBindingAdaptorType)
            {    
                return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
            }
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_contents_7(ref object o, object v)
        {
            ((huqiang.UIComposite.TabControl)o).contents = (System.Collections.Generic.List<huqiang.UIComposite.TabControl.TableContent>)v;
        }

        static StackObject* AssignFromStack_contents_7(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            System.Collections.Generic.List<huqiang.UIComposite.TabControl.TableContent> @contents = (System.Collections.Generic.List<huqiang.UIComposite.TabControl.TableContent>)typeof(System.Collections.Generic.List<huqiang.UIComposite.TabControl.TableContent>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            ((huqiang.UIComposite.TabControl)o).contents = @contents;
            return ptr_of_this_method;
        }

        static object get_SelectColor_8(ref object o)
        {
            return ((huqiang.UIComposite.TabControl)o).SelectColor;
        }

        static StackObject* CopyToStack_SelectColor_8(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.TabControl)o).SelectColor;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_SelectColor_8(ref object o, object v)
        {
            ((huqiang.UIComposite.TabControl)o).SelectColor = (UnityEngine.Color)v;
        }

        static StackObject* AssignFromStack_SelectColor_8(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            UnityEngine.Color @SelectColor = (UnityEngine.Color)typeof(UnityEngine.Color).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16);
            ((huqiang.UIComposite.TabControl)o).SelectColor = @SelectColor;
            return ptr_of_this_method;
        }

        static object get_HoverColor_9(ref object o)
        {
            return ((huqiang.UIComposite.TabControl)o).HoverColor;
        }

        static StackObject* CopyToStack_HoverColor_9(ref object o, ILIntepreter __intp, StackObject* __ret, IList<object> __mStack)
        {
            var result_of_this_method = ((huqiang.UIComposite.TabControl)o).HoverColor;
            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static void set_HoverColor_9(ref object o, object v)
        {
            ((huqiang.UIComposite.TabControl)o).HoverColor = (UnityEngine.Color)v;
        }

        static StackObject* AssignFromStack_HoverColor_9(ref object o, ILIntepreter __intp, StackObject* ptr_of_this_method, IList<object> __mStack)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            UnityEngine.Color @HoverColor = (UnityEngine.Color)typeof(UnityEngine.Color).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)16);
            ((huqiang.UIComposite.TabControl)o).HoverColor = @HoverColor;
            return ptr_of_this_method;
        }



        static StackObject* Ctor_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* __ret = ILIntepreter.Minus(__esp, 0);

            var result_of_this_method = new huqiang.UIComposite.TabControl();

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }


    }
}
